﻿namespace Digitalmes.Domain.Mes;

/// <summary>
/// 计量单位
/// </summary>
[SugarTable("md_unit", "计量单位表")]
public class MdUnit : EntityBase
{
    /// <summary>
    /// 计量单位编号
    /// </summary>
    [Required, NotNull]
    [SugarColumn(ColumnDescription = "计量单位编号", Length = 32)]
    public string? UnitCode { get; init; }

    /// <summary>
    /// 计量单位名称
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "计量单位名称", Length = 32)]
    public string? UnitName { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", Length = 128)]
    public string? Remark { get; set; }
}
